<script setup lang="ts">
import useStore from "@/store";
import router from "@/router";

const store = useStore();
/*手动触发异常 */
const a: any = "";
console.log(a.abc());
</script>
<template>
  <h1>pinia count:{{ store.count }}</h1>
  <h1>pinia count*2:{{ store.doubleCount }}</h1>
  <el-button type="primary" plain @click="router.push({ path: '/' })">
    go to home</el-button
  >
</template>
<style></style>
